package com.kevin.learn.domain;

import java.util.List;

public class Node {

    private Integer id;

    private Integer parentId;

    private List<Node> children;

    public Node(Integer id ,Integer parentId) {
        this.id = id;
        this.parentId = parentId;
    }

    public Node() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<Node> getChildren() {
        return children;
    }

    public void setChildren(List<Node> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Node{" + "id=" + id + ", parentId=" + parentId + ", children=" + children + '}';
    }
}
